package com.pf.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author PanFei
 * @version 1.0.0
 * @createTime 2023/3/6 22:13
 */
@Data
public class TaskDO {

    private String taskCode;

    @NotEmpty(message = "审核准则名称不能为空")
    @Length(max = 6, message = "审核准则名称最大长度为{max}")
    private String criteriaName;

    @NotEmpty(message = "一级分类不能为空")
    @Length(max = 5, message = "一级分类最大长度为{max}")
    private String firstCategory;

    @NotEmpty(message = "二级分类不能为空")
    @Length(max = 5, message = "二级分类最大长度为{max}")
    private String secondCategory;

    @NotEmpty(message = "三级分类不能为空")
    @Length(max = 5, message = "三级分类最大长度为{max}")
    private String thirdCategory;
}
